{include file="public/header" /}
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.sc_inviter_set}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
  <div class="fixed-empty"></div>
  
  <form method="get" name="formSearch" id="formSearch">
      <div class="sc-search-form">
            <dl>
                <dt>{$Think.lang.sc_goods_name}</dt>
                <dd><input type="text" value="{$Request.get.goods_name|default=''}" name="goods_name" id="goods_name" class="txt"></dd>
            </dl>
          
            <div class="btn_group">
                 <a href="javascript:void(0);" id="dssubmit" class="btn " title="{$Think.lang.sc_query}">{$Think.lang.sc_query}</a>
                 <a href="{:url('Inviter/goods')}" class="btn btn-default" title="{$Think.lang.sc_cancel}">{$Think.lang.sc_cancel}</a>
            </div>
        </div>
  </form>
  
      
  <form method='post' id="form_goods" action="{:url('Goods/goods_del')}">
    <table class="sc-default-table">
      <thead>
        <tr class="thead">
          <th class="w80"></th>
            <th class="w180">{$Think.lang.sc_goods_name}</th>
            <th class="w180">{$Think.lang.inviter_ratio}</th>
            <th class="w80">{$Think.lang.goods_price}</th>
            <th class="w80">{$Think.lang.inviter_total_quantity}</th>
            <th class="w100">{$Think.lang.inviter_points_amount}</th>
            <th class="w100">{$Think.lang.inviter_amount}</th>
            <th>{$Think.lang.sc_handle}</th>
        </tr>
      </thead>
      <tbody>
        {notempty name="goods_list"}
        {foreach name="goods_list" item="val"}
        <tr class="hover edit">
          <td><div class="pic-thumb"><img src="{:goods_thumb($val, 240)}"  onload="javascript:ResizeImage(this,56,56);"/></div></td>
            <td>{$val.goods_name}</td>
            <td>
            <p>{$Think.lang.inviter_ratio_1}{$val.inviter_ratio_1}{$Think.lang.sc_percent}</p>
            <p>{$Think.lang.inviter_ratio_2}{$val.inviter_ratio_2}{$Think.lang.sc_percent}</p>
            <p>{$Think.lang.inviter_ratio_3}{$val.inviter_ratio_3}{$Think.lang.sc_percent}</p>
            </td>
            <td>{$Think.lang.currency}{$val.goods_price}</td>
            <td>{$val.inviter_total_quantity}</td>
            <td>{$Think.lang.currency}{$val.inviter_points_amount}</td>
            <td>{$Think.lang.currency}{$val.inviter_amount}</td>
            <td>
                <a href="{:url('Inviter/goods_edit','goods_commonid='.$val.goods_commonid)}" class="dsui-btn-edit"><i class="fa"></i>
                    {$Think.lang.sc_edit}
                </a>
                <a href="{:url('Inviter/goods_del','goods_commonid='.$val.goods_commonid)}" class="dsui-btn-del"><i class="fa"></i>
                    {$Think.lang.sc_del}
                </a>
            </td>
        </tr>
        <tr style="display:none;">
          <td colspan="8"><div class="sc-goods-sku ps-container"></div></td>
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
          <td colspan="15">{$Think.lang.sc_no_record}</td>
        </tr>
        {/notempty}
      </tbody>
      
    </table>
    {$show_page}
  </form>
</div>
<script type="text/javascript" src="{$Think.PLUGINS_SITE_ROOT}/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
<script type="text/javascript" src="{$Think.PLUGINS_SITE_ROOT}/jquery.mousewheel.js"></script>
<script type="text/javascript" src="{$Think.PLUGINS_SITE_ROOT}/mlselection.js" charset="utf-8"></script>

<script>
$(function(){
    $('#dssubmit').click(function(){
        $('#formSearch').submit();
    });
});
</script>



{include file="public/footer" /}